//
//  HuoDongModel.swift
//  约健
//
//  Created by tyh on 2017/10/16.
//  Copyright © 2017年 tyh. All rights reserved.
//

/*
 "id":"5",
 "rec_id":"4",
 "rec_mod":"activity",
 "thumb":"activity/thumb/20161212/thumb_20161212075619_103949575.jpg",
 "thumbsize":"106K",
 "rec_name":"东软羽毛球联2016赛",
 "userid":"1",
 "hits":"0",
 "insert_time":null,
 "update_time":"2017-08-14 15:13:11",
 "check_userid":"1",
 "checktime":null,
 "checkstate":"1",
 "listorder":"1",
 "vstate":"1"
 */

import UIKit

class HuoDongModel: NSObject {
        var id:NSString!
        var rec_id:NSString!
        var rec_mod:NSString!
        var thumb:NSString!
        var thumbsize:NSString!
        var rec_name:NSString!
        var userid:NSString!
        var hits:NSString!
        var insert_time:NSString!
        var update_time:NSString!
        var check_userid:NSString!
        var checktime:NSString!
        var checkstate:NSString!
        var listorder:NSString!
        var vstate:NSString!
    
    class func HuoDongModelWithDict(_ dict:NSDictionary) -> HuoDongModel{
        let model = HuoDongModel()
        model.setValuesForKeys(dict as! [String:NSObject])
        /*
          model.id = dict.value(forKey: "id") as! NSString!
          model.rec_id = dict.value(forKey: "rec_id") as! NSString!
          model.rec_mod = dict.value(forKey: "rec_mod") as! NSString!
          model.thumb = dict.value(forKey: "thumb") as! NSString!
          model.thumbsize = dict.value(forKey: "thumbsize") as! NSString!
          model.rec_name = dict.value(forKey: "rec_name") as! NSString!
          model.userid = dict.value(forKey: "userid") as! NSString!
          model.hits = dict.value(forKey: "hits") as! NSString!
          model.insert_time = dict.value(forKey: "insert_time") as! NSString!
          model.update_time = dict.value(forKey: "update_time") as! NSString!
          model.check_userid = dict.value(forKey: "check_userid") as! NSString!
          model.checktime = dict.value(forKey: "checktime") as! NSString!
          model.checkstate = dict.value(forKey: "checkstate") as! NSString!
          model.listorder = dict.value(forKey: "listorder") as! NSString!
          model.vstate = dict.value(forKey: "vstate") as! NSString!
 */
        
        return model
    }
    

}
